﻿using Microsoft.EntityFrameworkCore.Diagnostics;
using System.Data.Common;

namespace QueryData;

public class 使用标量值数据库函数
{
    void MyMethod()
    {
        using (var db = new BasicDbContext())
        {
            (from x in db.BasicEntities where BasicDbContext.MyFunction(x.Id) != 0 select x).ToList();
        }
    }

}
